<?php /* Smarty version Smarty-3.1.18, created on 2017-06-02 18:50:51
         compiled from "/data/www/mystery/protected/views/benchmark/duibiao_attach.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1974678693551b6eab72df04-01125627%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3ec9b160c902968c0a65ae13676a030c5f178f44' => 
    array (
      0 => '/data/www/mystery/protected/views/benchmark/duibiao_attach.tpl',
      1 => 1494904490,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1974678693551b6eab72df04-01125627',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_551b6eab7b2a42_46537067',
  'variables' => 
  array (
    'list' => 0,
    'val' => 0,
    'level' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_551b6eab7b2a42_46537067')) {function content_551b6eab7b2a42_46537067($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("../common/iframe_head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

        <?php if ($_smarty_tpl->tpl_vars['list']->value) {?>
        <table  class="gridtable table table-bordered"> 
        <tr><th>文件名</th><th>创建时间</th><th>操作</th></tr>
        <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
        <tr  id="qba_<?php echo $_smarty_tpl->tpl_vars['val']->value['qba_id'];?>
">
            <td><?php echo $_smarty_tpl->tpl_vars['val']->value['filename'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['val']->value['create_time'];?>
 </td>
            <td>
                <a href="<?php echo $_smarty_tpl->tpl_vars['val']->value['fileurl'];?>
" target="_blank">下载</a>
                <?php if ($_smarty_tpl->tpl_vars['level']->value==4) {?><a href="javascript:;" onclick="del(<?php echo $_smarty_tpl->tpl_vars['val']->value['qba_id'];?>
);">删除</a><?php }?>
            </td>
        </tr>
        <?php } ?>
        </table>
        <?php }?>
<script>
//删除
function del(qba_id){
    if (confirm('确定删除')) {
        $.getJSON('/benchmark/DelBenchAttach',{qba_id:qba_id},function(res){
            alert(res.note);
            if (res.status==1) {
                window.parent.location.reload();
            }
            
        });    
    }

}
</script>
<?php echo $_smarty_tpl->getSubTemplate ("../common/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
